import Vue from 'vue';
import App from './App.vue';
import router from './router';
import store from './store';
import ElementUI from 'element-ui';
import Echarts from '@com/echarts/index.vue';
import { myTypeof,myConnect,noRepetitionArr,handleTime } from '@uti/instrument.js';
import 'element-ui/lib/theme-chalk/index.css';
import '@/styles/index.js';
Vue.use(ElementUI);
Vue.component('Echarts',Echarts);
// 全剧函数
Vue.prototype.$myTypeof = myTypeof;
// 替代扩展运算符(...) 做数组/对象 合并时用
Vue.prototype.$myConnect = myConnect;
// 数组去重
Vue.prototype.$noRepetitionArr = noRepetitionArr;
// 时间格式化
Vue.prototype.$handleTime = handleTime;

Vue.config.productionTip = false;
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app');
